<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <link rel="selenium.base" href="http://localhost:49506"/>
  <title>generate_and_revoke_user_token</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
  <thead>
  <tr>
    <td rowspan="1" colspan="3">generate_and_revoke_user_token</td>
  </tr>
  </thead>
  <tbody>
  <tr>
	<td>open</td>
	<td>/sessions/logout</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>/sessions/new</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=login</td>
	<td>admin</td>
</tr>
<tr>
	<td>type</td>
	<td>id=password</td>
	<td>admin</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>name=commit</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=.js-user-authenticated</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>/users</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=.js-user-tokens</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>css=.js-user-tokens</td>
	<td></td>
</tr>
<tr>
	<td>waitForText</td>
	<td>css=.modal</td>
	<td>*No tokens*</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=.js-generate-token-form input</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>css=.js-generate-token-form input</td>
	<td>test-token</td>
</tr>
<tr>
	<td>click</td>
	<td>css=.js-generate-token-form button</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=.modal code</td>
	<td></td>
</tr>
<tr>
	<td>waitForText</td>
	<td>css=.modal</td>
	<td>*test-token*</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=.js-revoke-token-form</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>css=.js-revoke-token-form button</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>css=.js-revoke-token-form button</td>
	<td></td>
</tr>
<tr>
	<td>assertElementNotPresent</td>
	<td>css=.js-revoke-token-form</td>
	<td></td>
</tr>
</tbody>
</table>
</body>
</html>
